/**
 * 
 */
package com.easidea.tim.test.service.inventory;

import org.junit.Test;

import com.easidea.tim.service.inventory.CheckInOutService;
import com.easidea.tim.test.SpringIntegrationTestCase;

/**
 * @author Harrison
 *
 */
public class CheckInOutServiceTestCase extends SpringIntegrationTestCase{
	private CheckInOutService checkInOutService;

	/**
	 * Test method for {@link com.easidea.tim.service.inventory.CheckInOutService#checkOutBySaleOrder(java.lang.Long, java.lang.String)}.
	 */
//	@Test
//	public void testCheckOutBySaleOrder() {
//		assertNotNull(checkInOutService);
//		boolean rest = checkInOutService.checkOutBySaleOrder(74788L, "harrison");
//		
//		assertTrue(rest);
//	}

	/**
	 * 测试销售退回
	 */
	@Test
	public void testCheckInBySalesReturn(){
		assertNotNull(checkInOutService);
		boolean rest = checkInOutService.checkInBySalesReturn(78565l, "harrison");
	}
	
	/**
	 * @return the checkInOutService
	 */
	public CheckInOutService getCheckInOutService() {
		return checkInOutService;
	}

	/**
	 * @param checkInOutService the checkInOutService to set
	 */
	public void setCheckInOutService(CheckInOutService checkInOutService) {
		this.checkInOutService = checkInOutService;
	}

}
